package com.hff.dao;

import com.hff.pojo.FileData;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface FileDao {

    @Insert("insert into t_fileData(id,date,fileName,fileSize,fileClass,fileAddress) values(#{id},#{date},#{fileName},#{fileSize},#{fileClass},#{fileAddress})")
    void saveFileData(FileData fileData);

    @Select("select * from t_fileData where id=#{uuid}")
    FileData queryFileData(String uuid);
}
